package com.example.springboot_zc.Utils;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class responseController {
    @RequestMapping(value = "/getData", method = RequestMethod.GET)
    public Result getData(){
    Map map = new HashMap ();
    map.put("name","javayz");
    map.put("age","23");
    Map childMap = new HashMap();
    childMap.put("home","浙江");
    childMap.put("job", "java");
    map.put("childMap", childMap);
    Result r = Result.success(map);
    return r;
    }
}


